package com.arpa.wms.service;

import com.arpa.wms.domain.dto.CountingRegisterDTO;
import com.arpa.wms.domain.entity.CountingRegister;
import com.arpa.wms.domain.vo.CountingRegisterVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 盘点登记 服务类 接口
 * @author jinss
 * @date 2020-08-31 15:13:11
 **/
public interface ICountingRegisterService extends IService<CountingRegister> {

    /**
     * 查询合计,包含总数
     * @param countingRegisterDTO
     * @return
     */
    CountingRegisterVO queryListSum(CountingRegisterDTO countingRegisterDTO);
    List<CountingRegisterVO> queryList(CountingRegisterDTO countingRegisterDTO);

     /**
      *  @author: Allen chen
      *  @Date: 2020/10/23 10:19
      *  @Description: 根据盘点号查询
      */
    List<CountingRegisterVO> queryTaskDoneByCountCode(CountingRegisterDTO countingRegisterDTO);

    /**
     * 盘点单完成检查确认
     * @param countingRegisterDTO
     * @return
     */
    boolean checkConfirm(CountingRegisterDTO countingRegisterDTO);

    /**
     * 通过查询记录创建盘点登记明细
     * @param countingCode 盘点单号
     * @param userCode 操作人code
     */
    void insertBatch(String countingCode, String userCode);


}
